package band.wukong.practice.java.core.pack.lang;

/**
 * @author wukong(wukonggg@139.com)
 */
public class IntegerSample {

    public static void main(String[] args) {
        hexToDecimal();
    }

    private static void decimalToHex() {
        String s = Integer.toHexString(10);

        System.out.println(s);
        System.out.println(Integer.parseInt(s,16));
    }

    private static void hexToDecimal() {
        String s = Integer.toString(0x80,10);

        System.out.println(s);
        System.out.println(Integer.parseInt(s,16));
    }
}
